﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JY.Wpf.Core.Events
{
    /// <summary>
    /// 操作事件
    /// </summary>
    public class OperationEvent<T> : IEventMarker
    {
        #region # 构造器
        /// <summary>
        /// 操作事件
        /// </summary>
        /// <param name="operationData">操作数据</param>
        /// <param name="eventMarker">事件标记</param>
        public OperationEvent(T operationData, object eventMarker = null)
        {
            this.OperationData = operationData;
            this.EventMarker = eventMarker;
        }
        #endregion

        #region 操作数据——T OperationData
        /// <summary>
        /// 操作数据
        /// </summary>
        public T OperationData { get; set; }
        #endregion

        #region 事件标记——object EventMarker
        /// <summary>
        /// 事件标记
        /// </summary>
        public object EventMarker { get; set; }
        #endregion
    }
}
